package jsyf.oa.facade.email;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by ccp on 2017/11/1 0001.
 */
@Path("/emailService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface EmailFacade {

    @Path("/sendEmail")
    String sendEmail(String model);

    @Path("/getOrgInbox")
    List<JSONObject> getOrgInbox(String userId);

    @Path("/findInboxList")
    JSONObject findInboxList(JSONObject jsonObject, Integer requestPage, Integer pageSize);

    @Path("/findInboxDetail")
    JSONObject findInboxDetail(String emailId, String userId);

    @Path("/findEmailAll")
    Boolean findEmailAll(String jsonData);

    @Path("/unreadEmail")
    Integer unreadEmail(String userId);

    @Path("/setReadCloseTime")
    Boolean setReadCloseTime(String userId, String emailId);

    @Path("/everyDayEmailMove")
    Integer everyDayEmailMove();

    @Path("/getNotReadReport")
    JSONObject getNotReadReport();
}
